<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>水仙花数</title>
	</head>
	<body>
		<script type="text/javascript">
			for(var i=100;i<1000;i++)
        {
            var a=i%10;
            var b=(i/10)%10;
            b=parseInt(b);
            var c=i/100;
            c=parseInt(c);
            if(i==(a*a*a+b*b*b+c*c*c))
            {
                document.write(i+"&nbsp&nbsp");
            }
        }
		</script>
	</body>
</html>
